package com.ymtms.arrivalofgoods.constant;

import com.alibaba.fastjson.JSONObject;
import com.ymtms.arrivalofgoods.utils.Smsutil;

public class SmsConstants {

    public static final String smsAppKey="LTAI4FbgeSp4aatvv4A9J8tF";
    public static final String smsSerect="4TfwvrxVilri7g3b4QAGwCPdMBOe1F";
    public static final String smsSign="久久包裹";
    public static final String smsModelId="SMS_176525952";

    /**
     * 随机生成6位数字作为验证码
     * @return
     */
    public static String getCode(){
        int code=(int)(Math.random()*9000+100000);
        return code + "";
    }


    public static void main(String[] args) {
        JSONObject modelParam=new JSONObject();
        modelParam.put("code", getCode());
        String phone="13308233567";
        //Smsutil.sendSms(smsAppKey,smsSerect,smsSign,smsModelId,phone,modelParam);
    }

}
